package com.javadroid.webservices;

import com.sun.jersey.api.client.Client;
import com.sun.jersey.api.client.ClientResponse;
import com.sun.jersey.api.client.WebResource;

public class WebServiceClient {
	 
     public static void main(String[] args) {

            Client client = Client.create();
            WebResource webResource2 = client.resource("http://localhost:8585/WebService_SmartNovelas/getNovelas/allCaps");
            ClientResponse response2 = webResource2.accept("application/json").get(ClientResponse.class);
            if (response2.getStatus() != 200) {
                throw new RuntimeException("Failed : HTTP error code : " + response2.getStatus());
            }
            String output2 = response2.getEntity(String.class);
            System.out.println(output2);
 
     }            

}

